#include "TaskIcon.h"

TaskIcon::TaskIcon(void)
{
	CCSpriteFrameCache::sharedSpriteFrameCache()->addSpriteFramesWithFile("task_icon.plist");

}


TaskIcon::~TaskIcon(void)
{
}

void TaskIcon::setState( TASK_STATE state )
{
	vector<string> list;
	list.push_back("dungeons_task_icon_open.png");
	list.push_back("dungeons_task_icon_noopen.png");
	list.push_back("dungeons_task_icon_finish.png");
	list.push_back("dungeons_task_icon_boss.png");
	CCSpriteFrame* frame = CCSpriteFrameCache::sharedSpriteFrameCache()->spriteFrameByName(list[state].c_str());
	this->initWithSpriteFrame(frame);
}
